package hspedu.learn.javabase.extendsImporve;

/**
 * @author zxl
 */
public class Pupil extends Student {
    private String friendName;

    public Pupil() {
        this("sss");
        System.out.println("小学生的无参构造起");
//        super("java", "男", "shanghai", 23);
    }

    public Pupil(String friendName) {
//        this();
        System.out.println("小学生名称构造器");
        this.friendName = friendName;
    }

    public String getFriendName() {
        return friendName;
    }

    public void setFriendName(String friendName) {
        this.friendName = friendName;
    }
}
